<?php
switch ($strAction) {
	case 'index':
	case 'ubdetail':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/fullhouse.css'
		);		
		$arrJS 	= array (
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/language/fullhouse/index.js',
							HOST_STATICS . 'js/fullhouse/index.js'
				);
		break;
	case 'fortune':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/fullhouse.css'
		);	
		$arrJS 	= array (
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/fullhouse/fortune.js'
				);
		break;
	case 'inform':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/fullhouse.css'
		);	
		$arrJS 	= array (
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
				);
		break;
	case 'photo':
	case 'album':
	case 'pdetail':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/fullhouse.css'
		);	
		$arrJS 	= array (
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js',
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/language/fullhouse/photo.js',
							HOST_STATICS . 'js/fullhouse/photo.js',
				);
		break;	
	case 'behaviour':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/fullhouse.css'
		);	
		$arrJS 	= array (
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
				);
		break;
	case 'friend':		
		$arrCSS 		= array	(
							HOST_STATICS . 'css/jquery-select.css',
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'css/fullhouse.css'
							
		);
		$arrJSBefore 	= array(
							HOST_STATICS . 'js/library/jquery.select.js', 
							HOST_STATICS . 'js/library/init.js',
							
		);	
		$arrJS			= array(
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/fullhouse/relation.js',
						);
		break;
	default:
		break;
}
$objUser	= Zend_Registry::get('objUser');
if(!$objUser) {	
	Vfriend_Function::redirect(LINK_INDEX_404);
}else {
	if($objUser->statuses == 1) {
		$this->view->objUser	= $objUser;	
	} else {
		$strMessage	= $arrMessage[9];
		$strMessage	= str_replace('[strFullname]',$objUser->fullnamevn, $strMessage);
		Vfriend_Function::setMsg($strMessage);
		Vfriend_Function::redirect(HOST_VFRIEND);
	}
}
?>